package com.ag.lzm.service;

import java.io.IOException;
import java.util.List;
import java.util.Map;

import org.codehaus.jackson.JsonParseException;
import org.codehaus.jackson.map.JsonMappingException;

import com.ag.bean.TbPlan;
import com.ag.bean.TbPlanStandard;

public interface IPlanService {
	public Long findAllPlanRC(Map<String, String> queryOption,
			String planStatus, Map<String, Object> session);

	public List<TbPlan> findAllPlan(Map<String, String> queryOption,
			String planStatus, int firstRow, int maxRow,
			Map<String, Object> session) throws Exception;

	public String savePlan(TbPlan plan, String plankeywords,
			Map<String, Object> session);

	public void savePlanSteps(String planID, String planSteps)
			throws JsonParseException, JsonMappingException, IOException;

	public TbPlan findPlanById(String pid, String targetURL, String basePath);

	public void delPlanById(String pid);

	public void reportPreparedPlan(String pid);

	public void auditPlan(String PId, String planStatus, String POpinion);

	public void releasePlan(String pid);

	public void savePlanStandard(TbPlanStandard planStandard);

	public String findCurrentBasePath();
}
